<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link href="/module/jeDate/jedate.css" rel="stylesheet"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;height: 100%;">
<div class="page-body" style="padding: 0px;height: 100%;">
    <div class="main-container container-fluid" style="height: 100%;">
        <div class="page-container" style="height: 100%;">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px;height: 100%;">
                <div class="col-md-2 col-sm-2 col-xs-12" style="padding: 0px;height: 100%;">
                    <div class="widget flat radius-bordered" style="height: 100%;">
                        <div class="widget-header bg-lightred">
                            <span class="widget-caption">工会部门列表</span>
                        </div>
                        <div class="widget-body" style="height: 100%;overflow-y: auto;">
                            <ul id="tree" class="ztree"></ul>
                            <a href="javascript:void(0);" class="btn btn-purple js-addbtn" style="width: 100%;">添加成员</a>
                            <a href="javascript:void(0);" class="btn btn-sky js-query" style="width: 100%; margin-top: 5px;">成员查询</a>
                        </div>
                    </div>
                </div>
                <div class="col-md-10 col-sm-10 col-xs-12" style="padding: 0px" id="list">
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="widget-body">
                                <div class="btn-group" id="toobar" role="group" aria-label="...">
                                </div>
                                <table id="myTable"></table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-10 col-sm-10 col-xs-12" style="padding: 0px;display: none;" id="infodiv">
                    <form class="form-horizontal" id="form">
                        <table class="table table-hover table-striped table-bordered">
                            <tr>
                                <td width="20%">${i18n('system.sortNo')}：</td>
                                <td width="30%"><input type="text" class="form-control" id="sortNo" name="sortNo" placeholder="${i18n('system.sortNo')}"></td>
                                <td width="20%">成员姓名：</td>
                                <td><input type="text" class="form-control" id="userName" name="userName" placeholder="成员姓名" maxlength="50"></td>
                                <td rowspan="4" colspan="2" width="10%" style="text-align: center;">
                                    <div>
                                        <div>
                                            <img id="file_img" style="width: 150px; height: 200px;" src="" onerror="this.onerror=null;this.src='/assets/img/avatars/adam-jansen.jpg'" class="avatar">
                                        </div>
                                        <div>
                                            <a style="margin: 20px; cursor: pointer;" onclick='delPhotos();'>${i18n('system.delete')}</a>
                                            <a style="margin: 20px; position: relative; text-decoration: none; cursor: pointer;">更换
                                                <input type="file" onchange="uploadimg('file','govphotos');" hidefocus="true" maxlength="1" id="file" name="file" class="addfile" accept="image/*">
                                            </a>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%">性别：</td>
                                <td width="30%">
                                    <div class="control-group">
                                        <div class="radio" style="display: inline-block;">
                                            <label> <input name="userSex" type="radio" value="男" checked="checked"> <span class="text">男 </span>
                                            </label>
                                        </div>
                                        <div class="radio" style="display: inline-block;">
                                            <label> <input name="userSex" type="radio" value="女"> <span class="text">女</span>
                                            </label>
                                        </div>
                                    </div>
                                </td>
                                <td width="20%">关联账号：</td>
                                <td width="10%"><input placeholder="关联账号" type="text" name="accountId" id="accountId" class="form-control" maxlength="50" opt-id="accountId" onclick="selectUser(this,'false');" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td width="20%">身份证号：</td>
                                <td width="30%"><input placeholder="身份证号" type="text" name="cardId" id="cardId" class="form-control" maxlength="20"></td>
                                <td width="20%">出生日期：</td>
                                <td width="30%"><input placeholder="出生日期" type="text" name="birthday" id="birthday" class="form-control" maxlength="20" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td width="20%">工会职务：</td>
                                <td width="30%">
                                    <select class="form-control" id="levelId" name="levelId">
                                    </select>
                                </td>
                                <td width="20%">所在基层：</td>
                                <td width="30%">
                                    <input type="text" class="form-control" id="deptId" name="deptId" placeholder="请选择上级分类" readonly="readonly">
                                    <div id="menuContent" class="menuContent">
                                        <ul id="menuTree" class="ztree"></ul>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%">加入时间：</td>
                                <td width="30%"><input placeholder="加入时间" type="text" name="joinTime" id="joinTime" class="form-control" maxlength="20" readonly="readonly"></td>
                                <td width="20%">联系电话：</td>
                                <td width="30%" colspan="2"><input placeholder="联系电话" type="text" name="tel" id="tel" class="form-control" maxlength="20">
                                </td>
                            </tr>
                            <tr>
                                <td width="20%">备注：</td>
                                <td width="30%" colspan="6">
                                    <div name="remark" id="remark"></div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="6" align="center">
                                    <a id="createbut" href="javascript:void(0);" class="btn btn-primary">${i18n('system.create')}</a>
                                    <a style="display: none;" id="updatabut" href="javascript:void(0);" class="btn btn-maroon">更&nbsp;&nbsp;改</a>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/assets/js/editors/summernote/summernote.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/partyunion/org/setmember.js"></script>
</html>
